/*
   Copyright (C) 2007 Yen-Ju Chen <yjchenx gmail>

   This application is free software; you can redistribute it and/or 
   modify it under the terms of the MIT license. See COPYING.

*/

#import <AddressBook/AddressBook.h>
#import "ABObject.h"

@implementation ABObject
+ (void) initialize
{       
	/* GNU ObjC runtime does not call +initialize in super.
	   So we have to include all properties from OKObject */
    NSDictionary *pt = [OKObject propertiesAndTypes];
    [ABObject addPropertiesAndTypes: pt];
    pt = [[NSDictionary alloc] initWithObjectsAndKeys:
        [NSNumber numberWithInt: kOKStringProperty],
            kABFirstNameProperty,
        [NSNumber numberWithInt: kOKStringProperty],
            kABLastNameProperty,
        [NSNumber numberWithInt: kOKStringProperty],
            kABUIDProperty,
        nil];
    [ABObject addPropertiesAndTypes: pt];
    DESTROY(pt);
}
@end

